# !/usr/bin/python
# -*- coding: UTF-8 -*-

# 例1：if 基本用法

flag = False
name = 'python'
if name == 'python':  # 判断变量否为'python'
    flag = True  # 条件成立时设置标志为真
    print('welcome boss')  # 并输出欢迎信息
else:
    print(name)    # 条件不成立时输出变量名称

# #!/usr/bin/python
# -*- coding: UTF-8 -*-
# 例2：elif用法  php if elseif
name='jiali'
if name=='jiajia':
    print("jiajia")
elif name=='lijia':
    print("lijia")
elif name=="lili":
    print("lili")
else:
    print(name)

# !/usr/bin/python
# -*- coding: UTF-8 -*-

# 例3：if语句多个条件
score=10
if score>=0 and score<=10:
    print('score is 0~10')
if score<0 or score>10:
    print('score is not 0~10')
else:
    print('this score is false')
